<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//Route::get('think', function () {
//    return 'hello,ThinkPHP6!';
//});
//
//Route::get('hello/:name', 'index/hello');

//Route::rule('ds/:id','Address/details');
//修改首页
//Route::rule('/','Test/index');

//限定输入的参数
//Route::rule('ds/:id','Address/details')->pattern(['id'=>'\d+']);

//Route::rule('bd/:id','group.Blog/details');

//跳转到其他页面
//Route::redirect('ds/:id','http://localhost:8000',302);
//强制为html文件
//Route::rule('ds/:id','Address/details')->ext('html');

//Route::rule('ds/:id','Address/details')->domain('news.abc.com');

//Route::domain('news.abc.com',function (){
//        Route::rule('ds/:id','Address/details');
//    });
//Route::rule('ds/:id','Address/details');

//路由分组
//Route::group(function (){
//    Route::rule('ds/:id','Address/details');
//    Route::rule('rd/:name','Address/read');
//});

//Route::miss('public/miss');

//Route::resource('blog','Blog');
//Route::resource('blog.comment','Comment');
//Route::rule('re/:id','Rely/get');